#!/usr/bin/env python
# encoding:utf-8
'''
@author: yangyongjie
@license: (C) Copyright 2013-2017, Node Supply Chain Manager Corporation Limited. 
@contact: deamoncao100@gmail.com
software: garner
@file: order.py
@time: 2022/8/29 16:20
@desc:
'''
from model import db
import datetime
class Orders(db.Model):
    __tablename__ = "order"
    id = db.Column(db.Integer, primary_key=True, autoincrement=True)
    user_id = db.Column(db.ForeignKey("user.id"))
    price = db.Column(db.Float(20), nullable=False)
    pay_method = db.Column(db.String(64), nullable=False)
    is_pay = db.Column(db.Enum("是", "否"), nullable=False)
    creat_time = db.Column(db.DateTime, default=datetime.datetime.now())